<?php namespace App\Services;

use Config, Session;
class Helper{
    public static function checkPerm($perm) {
        $allow_perm = Session::get('admin.perm');
        if($allow_perm == 'all'){
            return true;
        }
        if(in_array($perm, $allow_perm)){
            return true;
        }
        return false;
    }


	
}